/*
* 评论 - api
*
*/

import { postRequest, getRequest } from '@/lib/axios';

export const commentsApi = {
    /*
    * 创建评论
    *
    */
    create: (params) => {
        return postRequest('/api/private/comments/create', params);
    },

    /**
     *  查询所有评论信息
     * 
    */
    list: (params) => {
        return postRequest('/api/private/comments/list', params);
    },

    /**
     *  更新评论信息
     * 
    */
    update: (params) => {
        return postRequest('/api/private/comments/update', params);
    },

    /**
     *  删除评论信息
     * 
    */
    delete: (params) => {
        return postRequest('/api/private/comments/delete', params);
    },
}